package felix.dataviewer.Data;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by huangmf on 7/28/2017.
 */

public class DBBean implements Parcelable {
    private String mName;

    public String getName() {
        return mName;
    }

    public void setName(String name) {
        mName = name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.mName);
    }

    public DBBean() {
    }

    protected DBBean(Parcel in) {
        this.mName = in.readString();
    }

    public static final Parcelable.Creator<DBBean> CREATOR = new Parcelable.Creator<DBBean>() {
        @Override
        public DBBean createFromParcel(Parcel source) {
            return new DBBean(source);
        }

        @Override
        public DBBean[] newArray(int size) {
            return new DBBean[size];
        }
    };
}
